package com.gc.server.service;

import com.gc.server.entity.PlanEntity;
import com.yf.service.BaseService;

import java.util.Date;
import java.util.List;

/**
 * 周计划Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Mar 10 11:17:45 CST 2020
 */
public interface PlanService extends BaseService<PlanEntity> {


    /**

     List<PlanVo> queryListVo(PlanVo planVo);

     PlanVo getVo(Long id);
     **/

    /***********BACK***********/

    /***********API***********/

    /**
     * 创建一个周计划 默认是6天
     * @param userId
     * @param startDate
     * @return
     */
    PlanEntity add(Long userId,Date startDate,Date endDate,int year,int week);

    /**
     * 找到某人的计划
     * @param userId
     * @return
     */
    List<PlanEntity> list(Long userId);


    List<PlanEntity> findByYear(Long userId,int year);
}
